package ren.kane.asdppp.transaction.change.classification;

import ren.kane.asdppp.classification.HourlyClassification;
import ren.kane.asdppp.classification.PaymentClassification;
import ren.kane.asdppp.schedule.PaymentSchedule;
import ren.kane.asdppp.schedule.WeeklySchedule;

/**
 * @author renrk(1275) on 2019-04-20 9:16 PM
 **/
public class ChangeHourlyTransaction extends ChangeClassificationTransaction {

    private double hourlyRate;

    public ChangeHourlyTransaction() {
    }

    public ChangeHourlyTransaction(int empId, double hourlyRate) {
        super(empId);
        this.hourlyRate = hourlyRate;
    }

    @Override
    protected PaymentClassification getClassification() {
        return new HourlyClassification(hourlyRate);
    }

    @Override
    protected PaymentSchedule getSchedule() {
        return new WeeklySchedule();
    }
}
